﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Demo_GoToMeeting._default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Demo GoToMeeting</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <link href="Content/bootstrap.min.css" rel="stylesheet" />
    <link href="Content/bootstrap-theme.min.css" rel="stylesheet" />
    <script src="Scripts/jquery-1.9.1.min.js"></script>
    <script src="Scripts/bootstrap.min.js"></script>
    <script>
        function msg() {
            $('#msg').toggle('slow').fadeOut(8000);
        }
        function msgClass() {
            $('#msg').removeClass('alert-danger').addClass('alert-success');
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="container">
            <div class="jumbotron">
                <h1>GoToMeeting API Demo</h1>
                <div class="input-group">
                    <span class="input-group-addon" style="width: 100px">User Name</span>
                    <asp:TextBox CssClass="form-control" Style="width: 500px" ToolTip="GoToMeeting Organizer Username" ID="txtUserName" runat="server"></asp:TextBox>
                </div>
                <div class="input-group">
                    <span class="input-group-addon" style="width: 100px">Password</span>
                    <asp:TextBox CssClass="form-control" Style="width: 500px" ToolTip="GoToMeeting Organizer Password" ID="txtPassword" runat="server"></asp:TextBox>
                </div>
                <div class="input-group">

                    <span class="input-group-addon" style="width: 100px">API Key</span>
                    <asp:TextBox CssClass="form-control" Style="width: 500px" ID="txtKey" ToolTip="This is the Consumer Key @ https://developer.citrixonline.com" runat="server"></asp:TextBox>
                </div>
                <br />

                <p>
                    <asp:Button ID="btnGo" CssClass="btn btn-primary btn-lg" runat="server" Text="Get Token" OnClick="btnGo_Click" />
                </p>

                <h2>
                    <asp:Label ID="lblToken" runat="server" Text=""></asp:Label></h2>
            </div>
            <asp:Panel ID="Panel1" runat="server" Visible="False">
                <asp:Button ID="btnCreateMeeting" Enabled="false" CssClass="btn btn-lg" runat="server" Text="Create Meeting" OnClick="btnCreateMeeting_Click" />
                <div class="list-group">
                    <h3><span class="list-group-item">
                        <asp:Label ID="lblMeetingID" runat="server" Text=""></asp:Label></span></h3>
                    <h3><span class="list-group-item">
                        <asp:Label ID="lblConferenceCallInfo" runat="server" Text=""></asp:Label></span></h3>
                </div>
                <asp:Button ID="btnStartMeeting" CssClass="btn btn-lg" runat="server" Enabled="false" Text="Start" OnClick="btnStartMeeting_Click" />
                <br />

                <asp:TextBox CssClass="form-control" Style="width: 800px" ID="txtUrl" runat="server"></asp:TextBox>
                <br />
            </asp:Panel>

            <div id="msg" style="display: none" class="alert alert-danger">
                <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>
            </div>
        </div>
    </form>
</body>
</html>
